package com.binyouwei.designpatterns.behavior.interpreter;

import java.beans.Expression;

/**
 * @author 宾有为
 * Created on 2024/7/15 19:21
 * Social homepage: https://blog.csdn.net/baidu_41616022
 * @desc
 **/
public class InterpreterNumberExpression extends InterpreterExpression {
    private int number;

    public InterpreterNumberExpression(int number) {
        this.number = number;
    }

    @Override
    int interpret() {
        return number;
    }
}
